<%@page import="com.qingke.pojo.DatePropertyEdit"%>
<%@page import="java.beans.PropertyEditorManager"%>
<%@page import="java.beans.PropertyEditor"%>
<%@page import="java.util.Date"%>


<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="ex"  uri="WEB-INF/mytag.tld"%>
<%!public void jspInit() {
		PropertyEditor editor = PropertyEditorManager.findEditor(Date.class);
		if (editor == null) {
			PropertyEditorManager.registerEditor(Date.class, DatePropertyEdit.class);
		}
	}%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<jsp:useBean id="message1" class="com.qingke.pojo.Message"></jsp:useBean>
	<jsp:setProperty property="from" name="message1" value="zjy" />
	<jsp:setProperty property="to" name="message1" value="xy"/>
	<jsp:setProperty property="msgDate" name="message1" value="<%=new Date()%>" />
	<jsp:setProperty property="message" name="message1" value="hi" />
	
	From:<jsp:getProperty property="from" name="message1" /><br> 
	To:<jsp:getProperty property="to" name="message1" /><br> 
	Date:<jsp:getProperty property="msgDate" name="message1" /><br> 
	message:<jsp:getProperty property="message" name="message1" /><br>
	
	<ex:Hello/><br>
	<jsp:text>
	${message1.from} send "${message1.message}" to ${message1.to}
	</jsp:text>
	<p>${ex:today(20)}</p>
</body>
</html>